CC= gcc
CFLAGS= -Wall -W -pedantic -Werror -std=c99 -D_XOPEN_SOURCE=500 -I `ocamlc -where`
EXEC=prog

SOURCES= lst.c listes.ml
HEADERS= ${SOURCES:.c=.h}
OBJECTS= ${SOURCES:.c=.o}

all: ${EXEC}

#gen de l'executable	
${EXEC}: ${OBJECTS}
	ocamlopt -o ${EXEC} ${OBJECTS}

#nettoyage
clean::
	rm -f *~
	rm -f *.o
	rm -f ${EXEC}
#END

